﻿using System;
using System.IO;

namespace ZYing.LiquidThemeEngine.FileProviders
{
    internal readonly struct NullLiquidThemeFileInfo : ILiquidThemeFileInfo
    {
        public bool Exists => false;

        public long Length => -1;

        public string Name { get; }

        public NullLiquidThemeFileInfo(string name)
        {
            Name = name;
        }

        public DateTimeOffset LastModified => DateTimeOffset.MinValue;

        public bool IsDirectory => false;

        public Stream CreateReadStream()
        {
            throw new NotSupportedException();
        }
    }
}
